﻿using System;
using MaLu.Common;
using System.Data;
using MaLu.BusiLogic;

namespace MaluJg.web.Move
{
    public partial class EnterpriseList : MovePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }
        }
        private void BindData()
        {
            string where = "Year=" + Year;
            int recordcount = 0;
            DataTable dt = BLCommon.GetPagingList(Provider, "[EnterpriseName],[TuDiSquares],[TuDiXingZhi],[JianZhuMianJi1],[JianZhuMianJi2],[Place],[ReMark]", "Moving", where, "EnterpriseName", pgList.PageIndex + 1, 20, false, 0, ref recordcount);
            rptList.DataSource = dt;
            rptList.DataBind();
            pgList.RecordCount = recordcount;

        }

        protected void pgList_OnPreRender(object sender, EventArgs e)
        {

            BindData();

        }
    }
}